package com.learn.jackson.annotation.jsonProperty;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

/**
 * @author HuangChao
 * @since 2025/6/8 10:37
 */
@AllArgsConstructor(staticName = "of")
@NoArgsConstructor
@Data
@EqualsAndHashCode
public class JsonPropertyEntity {
    @JsonProperty(value = "id")
    private Long id;
    @JsonProperty(
        value = "name2"
        // 序列化属性顺序
        , index = 0
        // 默认值 (目前核心不使用，它目前只暴露给扩展模块使用)
        , defaultValue = "默认"
    )
    private String name;
}
